package com.leyou.common.vo;

import com.leyou.common.enums.ExceptionEnum;

/**
 * @program: leyou
 * @description: 返回结果视图对象
 * @author: NieMiao
 * @create: 2018-11-02 15:13
 **/
public class ResultVO {

    private Integer status;
    private String message;
    private Long timestamp;

    public ResultVO(ExceptionEnum exceptionEnum) {
        this.message = exceptionEnum.getMsg();
        this.status = exceptionEnum.getStatus();
        this.timestamp = System.currentTimeMillis();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }
}
